<template>
    <button class="v-button">{{ propValue }}</button>
</template>

<script>
import OnEvent from '../common/OnEvent' // 导入名为 OnEvent 的模块

export default {
    extends: OnEvent, // 继承 OnEvent 组件或混入对象

    props: {
        propValue: {
            type: String, // propValue 属性的类型为字符串
            default: '', // 默认值为空字符串
        },
        element: {
            type: Object, // element 属性的类型为对象
            default: () => {}, // 默认值为一个空对象
        },
    },
}
</script>

<style lang="scss" scoped>
.v-button {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
    -webkit-appearance: none;
    text-align: center;
    box-sizing: border-box;
    outline: 0;
    margin: 0;
    transition: .1s;
    font-weight: 500;
    width: 100%;
    height: 100%;
    font-size: 14px;

    &:active {
        color: #3a8ee6;
        border-color: #3a8ee6;
        outline: 0;
    }

    &:hover {
        background-color: #ecf5ff;
        color: #3a8ee6;
    }
}
</style>
